Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Malleability] Update mapBackData to use generics and implement BackData #7098

Open
wants to merge 4 commits into
base: andron/BackData-generics-refactoring
Choose a base branch
from

Conversation

UlyanaAndrukhiv
Copy link
Contributor

Close: #7073

It is part of the broader refactoring effort referenced in EPIC #6646.

Context:

This PR refactors the existing MapBackData to separate it from using flow.Identifier and flow.Entity by introducing generics.

The MapBackData now uses generic type parameters:

  • Key (K) is constrained with comparable, ensuring that it supports equality checks.
  • Value (V) is defined as any, allowing flexibility.

This PR also updates the adjust parameter for the Adjust and AdjustWithInit methods to return not only the new adjusted value but also the new key for that value.

Tests and usages have been updated accordingly.

@UlyanaAndrukhiv UlyanaAndrukhiv self-assigned this Feb 27, 2025
@UlyanaAndrukhiv UlyanaAndrukhiv marked this pull request as ready for review February 27, 2025 11:32
@UlyanaAndrukhiv UlyanaAndrukhiv requested a review from a team as a code owner February 27, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Malleability] Update mapBackData to use generics and implement BackData
1 participant